package com.xnew.dict.service;

import com.xnew.bean.common.DictionaryInfo;
import com.xnew.dict.bean.EvaluateInfo;
import com.xnew.utils.DataInput;

import java.util.List;
import java.util.Map;

/**
 * @Author yangcd
 * @Date 2020/12/23
 */
public interface DictCommonService {

    List<DictionaryInfo> queryDictCommonResult(String type) throws Exception;

    Map<String, List<DictionaryInfo>> queryDictCommonBatchResult(String type) throws Exception;

    void initDictToRedisResult() throws Exception;

    List<EvaluateInfo> buildEvaluateList(String evaluateType) throws Exception;

    void initOrgAndUserResult() throws Exception;

    void buildOrgAllName() throws Exception;

    void initUserPassword() throws Exception;

    void saveDictTypeCommon(String type, String typeName) throws Exception;

    void saveDictCodeCommon(Map<String, Object> map) throws Exception;

    List<Map<String, Object>> queryDictType(String typeCode) throws Exception;

    List<Map<String, Object>> queryDictTypeList(DataInput input) throws Exception;

    List<Map<String, Object>> queryDictCodeBean(String type, String code) throws Exception;

    List<DictionaryInfo> queryDictCommonRegion() throws Exception;

    List<DictionaryInfo> queryDictCommonPublish() throws Exception;

    List<DictionaryInfo> queryDictCommonLinkage(String type) throws Exception;

    List<DictionaryInfo> queryDictCommonAttriType(String type) throws Exception;
}
